package com.example.commonapi.dto;

import com.example.commonapi.pojo.Topic;
import com.example.commonapi.pojo.User;

public class UserAndTopic {
    private Topic topic;
    private User user;

    public UserAndTopic() {
    }

    public UserAndTopic(Topic topic, User user) {
        this.topic = topic;
        this.user = user;
    }

    @Override
    public String toString() {
        return "UserAndTopic{" +
                "topic=" + topic +
                ", user=" + user +
                '}';
    }

    public Topic getTopic() {
        return topic;
    }

    public void setTopic(Topic topic) {
        this.topic = topic;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
